package com.source.thread.main;

import com.source.thread.ThreadDemo02;

public class TestMian {
    public static void main(String[] args) throws InterruptedException {

        ThreadDemo02  threadDemo02 =new ThreadDemo02();
        threadDemo02.start();

        for (int i = 0; i < 100; i++) {
            if(i>10){
                threadDemo02.join();   //  threadDemo02的任务执行完成，才会执行。其它线程额内容
            }
            System.out.println("看代码。。。。。");
        }
    }
}
